This section provides information on using the CLI and Web interface; on using queries, patterns, and wildcards in commands; on setting the command privilege level; and on exiting the management interface.
The CLI provides a command-based view of the management interface. You enter commands at a command prompt, and command results are displayed in text.
The CLI can be accessed from a terminal that is connected directly to a node's console port, or you can use secure shell (ssh) or telnet to access a node and use the CLI to interact with the management interface remotely.
The CLI's command prompt is represented as node::> in the documentation. On a running Data ONTAP 10.0 system, the prompt shows the node name. For instance, on a node named engdata, the CLI prompt is engdata::>
When using the command line interface, you can access a command directory by typing the directory's name at the prompt and then pressing the Enter key. The directory name is then included in the prompt text to indicate that you are interacting with this command directory. To move deeper into the command hierarchy, type the name of a command subdirectory followed by the Enter key; the subdirectory name is now included in the prompt text and the context shifts to that subdirectory.
You can navigate several command directories if the entire command is entered. For example, you can display information about disk drives by entering the storage disk show command at the prompt. You can also run the command by navigating through one command directory at a time, as shown in the following example:
node::>storagenode::storage>disknode::storage disk>show
You can abbreviate commands by entering only the minimum number of letters in a command that makes the command unique to the current directory. For instance, to abbreviate the previous example, you can enter st d sh. You can use the Tab key to expand abbreviated commands and to display a command's parameters, including default parameter values.
You can use the top command to go to the top level of the command hierarchy, and the up or .. command to go up one level in the command hierarchy.
The command at the current command prompt is the current active command. You can edit the command by using the following key combinations. These key combinations are similar to those of the tcsh shell and the Emacs editor. In the following table, a caret (^) indicates that you must press the Ctrl key with the specified key.
Table 1.1. Command Line Editing in the CLI
| Edit Command | Action |
|---|---|
| ^b | Move the cursor back one character. |
| ^f | Move the cursor forward one character. |
| ^a | Move the cursor to the beginning of the line. |
| ^e | Move the cursor to the end of the line. |
| ^k | Remove the contents of the edit buffer, from the cursor to the end of the line, and save it in the cut buffer. |
| ^y | Yank the contents of the cut buffer, pushing it into the edit buffer at the cursor. |
| ESC b | Move the cursor back one word. |
| ESC f | Move the cursor forward one word. |
| ESC d | Cut the contents of the edit buffer, beginning at the cursor and continuing to the end of the following word. |
| ESC Backspace | Delete the word before the cursor. |
| ^h | Delete the character before the cursor. |
| Backspace | Delete the character before the cursor. |
| ^d | Delete the character after the cursor. |
| ^p | Replace the current contents of the edit buffer with the previous entry on the history list. For each successive ^p action, the history cursor moves to the previous entry. |
| ^n | Replace the current contents of the edit buffer with the next entry on the history buffer. |
| ↓ | Down history. |
| ↑ | Up history. |
| ← | Go backward one character. |
| → | Go forward one character. |
| ^q | TTY start output. |
| ^s | TTY stop output. |
| ^u | Clear the current edit buffer. |
| ^v | Escapes a special mapping for the following character. For instance, to enter a question mark into a command's arguments, press ^v, then press ?. |
| ? | Display context-sensitive help. |